<template>
<div>
  <div v-for="item in multipleAttention" style="display: inline-block;">
    <div style="display: inline-block;box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);margin-left: 15px;margin-top:20px;width: auto;margin-bottom: 20px">
      <div>
        <div style="display: inline-block;margin-bottom: 10px;margin-left: 10px;margin-top: 10px">
          <el-avatar :src="item.usersPortrait" :size="50" />
        </div>
        <div style="display: inline-block;margin-left: 10px;margin-right: 10px">
          {{ item.usersName }}
        </div>
      </div>
    </div>
  </div>
  <div v-if="multipleAttention.length === 0">
    <el-empty description="暂时没有关注哦" />
  </div>
</div>
</template>

<script>
import request from "../../../../utils/request";
export default {
  name: "msgAttention",
  data:function (){
    return{
      usersId:'',
      loginUsers:{},
      multipleAttention:[]
    }
  },
  methods:{
    initAttention(){
      request.get("/attention/selectMsgAttentionGet/"+this.usersId+'/'+this.loginUsers.usersId).then(res => {
        this.multipleAttention=res.data;
      })
    }
  },
  created() {
    this.usersId=this.$route.params.usersId;
    this.loginUsers=JSON.parse(localStorage.getItem("userData"))
  },
  mounted() {
    this.initAttention();
  }
}
</script>

<style scoped>

</style>